package com.beans;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-10-11
 * Time:19:26
 */

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * 根据属性实现bean对象的注入
 */
@Controller
public class UserController2 {
    @Autowired
    private UserController userController;

    public void sayHi(){
        userController.sayHi();
    }
}
